#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Rectangle.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Rectangle)
{
    TEST(getAera works well for a rectangle with length 3 and width 2)
    {
        Rectangle rect(2,3);
        ASSERT_EQ(6, rect.getArea());
    }

    TEST(getPerimeter works well for a rectangle with length 3 and width 2)
    {
        Rectangle rect(2,3);
        ASSERT_EQ(10, rect.getPerimeter());
    }

    TEST(change width of a rectangle)
    {
      Rectangle rect(6,3);
      rect.setWidth(4);
      ASSERT_EQ(4, rect.getWidth());
    }

    TEST(change length of a rectangle)
    {
      Rectangle rect(6,3);
      rect.setLength(7);
      ASSERT_EQ(7, rect.getLength());
    }
};
